package org.domain.acount.entity;

// Generated 10/10/2009 10:48:50 by Hibernate Tools 3.2.4.GA

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.AccessType;
import org.hibernate.annotations.CollectionOfElements;
import org.hibernate.validator.Length;

/**
 * Conta generated by hbm2java
 */
@Entity
@Table(name = "historico", catalog = "acount")
public class Historico implements java.io.Serializable {

	private Integer idHistorico;
	private int idConta;
	private String historico;


	public Historico() {
	}

	public Historico(int idConta, String historico) {
		this.idConta = idConta;
		this.historico = historico;
	}


	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id_historico", unique = true, nullable = false)
	public Integer getIdHistorico() {
		return this.idHistorico;
	}

	public void setIdHistorico(Integer idHistorico) {
		this.idHistorico = idHistorico;
	}

	@Column(name = "historico", nullable = false)
	public String getHistorico() {
		return this.historico;
	}

	public void setHistorico(String historico) {
		this.historico = historico;
	}


	@Column(name = "id_conta", nullable = false)
	public int getIdConta() {
		return this.idConta;
	}

	public void setIdConta(int idConta) {
		this.idConta = idConta;
	}

}
